package light.head.model;

import java.io.Serializable;

public class OrganTypeHandlePK implements Serializable {

	private static final long serialVersionUID = 2904118056167165906L;

	private Integer otc;
	private String hc;
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof RoleHandlePK)) {  
            return false;  
        }  
  
        final OrganTypeHandlePK aho = (OrganTypeHandlePK) obj;
        if (!hc.equals(aho.getHc())) {
            return false;
        }
        if (null == otc || otc.intValue() != aho.getOtc().intValue()) {
            return false;
        }
        return true;  
	}
	@Override
	public int hashCode() {
		int result;  
        result = otc.hashCode();  
        result = 29 * result + hc.hashCode();  
        return result;  
	}
	
	
	public Integer getOtc() {
		return otc;
	}
	public String getHc() {
		return hc;
	}

	public void setOtc(Integer otc) {
		this.otc = otc;
	}
	public void setHc(String hc) {
		this.hc = hc;
	}
}
